package com.iss.wyy.bean;

import java.lang.reflect.Method;

/**
 * 封装RequestMapping注解的方法和类
 */
public class Handler {
    /**
     * Controller 类
     */
    private Class<?> controllerClass;
    /**
     * RequestMapping注解的方法
     */
    private Method requestMappingMethod;

    public Handler(Class<?> controllerClass, Method requestMappingMethod) {
        this.controllerClass = controllerClass;
        this.requestMappingMethod = requestMappingMethod;
    }

    public Class<?> getControllerClass() {
        return controllerClass;
    }

    public void setControllerClass(Class<?> controllerClass) {
        this.controllerClass = controllerClass;
    }

    public Method getRequestMappingMethod() {
        return requestMappingMethod;
    }

    public void setRequestMappingMethod(Method requestMappingMethod) {
        this.requestMappingMethod = requestMappingMethod;
    }
}
